package com.sxt.webclient.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;

@Configuration
public class WebClientConfig {
	
	@Bean("webClientTemplate")
	public WebClient webClientRestTemplate() {
		//WebClient webClient = WebClient.create();
		return WebClient.create();
	}
	
	@Bean("webClientRestTemplate")
	public WebClient webClientRestTemplate(String url) {
		//WebClient webClient = WebClient.create();
		return WebClient.create(url);
	}
}
